import MDiscover from '@/pages/discover'
import MMyMusic from '@/pages/mymusic'
import MShop from '@/pages/shop'
import MFollow from '../pages/follow'
import MMusicians from '../pages/musicians'
import MDownload from '../pages/download'

import DiscoverRec from '../pages/discover/recommend'
import DiscoverRank from '../pages/discover/rank'
import DiscoverSheet from '../pages/discover/sheet'
import DiscoverRadioStation from '../pages/discover/radioStation'
import DiscoverNew from '../pages/discover/recommend'
import DiscoverMusicians from '../pages/discover/musicians'

const routes = [
    {
        path: '/discover',
        component: MDiscover,
        name: '发现音乐',
        children: [
            {
                path: '',
                component: DiscoverRec,
                name: '推荐',
                index: true
            },
            {
                path: 'rank',
                component: DiscoverRank,
                name: '排行榜',
                index: false
            },
            {
                path: 'sheet',
                component: DiscoverSheet,
                name: '歌单',
                index: false
            },
            {
                path: 'radio',
                component: DiscoverRadioStation,
                name: '电台',
                index: false
            },
            {
                path: 'new',
                component: DiscoverNew,
                name: '新碟上架',
                index: false
            },
            {
                path: 'musicians',
                component: DiscoverMusicians,
                name: '歌手',
                index: false
            },
        ]
        
    },
    {
        path: '/mymusic',
        component: MMyMusic,
        name: '我的音乐',
        index: false
    },
    {
        path: '/follow',
        component: MFollow,
        name: '关注',
        index: false
    },
    {
        path: '/shop',
        component: MShop,
        name: '商城',
        index: false
    },
    {
        path: '/musicians',
        component: MMusicians,
        name: '音乐人',
        index: false
    },{
        path: '/download',
        component: MDownload,
        name: '下载客户端',
        index: false
    },
    
    
]
export default routes